package com.cf.studentsociety.dao;

import com.cf.studentsociety.entity.Activity;

import java.security.Timestamp;
import java.sql.SQLException;
import java.util.List;

public interface ActivityDao {
    Integer addActivity(Activity activity)throws SQLException;
    List<Activity> queryBySocietyId(Integer societyId)throws SQLException;
    Integer updateIntro(Integer id, String intro) throws SQLException;
    Integer updateName(Integer id, String name) throws SQLException;
    Integer updatePlace(Integer id, String place) throws SQLException;
    Integer updateDetail(Integer id, String detail) throws SQLException;

    Activity getActivityById(Long id) throws SQLException;
    int deleteActivity(int id) throws SQLException; // 新增删除方法
}
